# /code/logger_config.py
from loguru import logger

# 配置日志
logger.add('./logs/runtime{time}.log',
           rotation='1 day',
           retention='1 days')